﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace COMOSOFT.OrderBusiness.Report
{
    public partial class rptOrderDetais : DevExpress.XtraReports.UI.XtraReport
    {
        public rptOrderDetais(int fpid,string OIDs)
        {
            InitializeComponent();            
            DataSet.DataSetrptOrderDetailsTableAdapters.sp_rptFtyPurMasterTableAdapter adtMT = new DataSet.DataSetrptOrderDetailsTableAdapters.sp_rptFtyPurMasterTableAdapter();
            adtMT.Fill(this.dataSetrptOrderDetails1.sp_rptFtyPurMaster, fpid);
            DataSet.DataSetrptOrderDetailsTableAdapters.sp_rptFtyPurDetailsTableAdapter adtDT = new DataSet.DataSetrptOrderDetailsTableAdapters.sp_rptFtyPurDetailsTableAdapter();
            adtDT.Fill(this.dataSetrptOrderDetails1.sp_rptFtyPurDetails, fpid);
            if (OIDs != null)
            {
                DataSet.DataSetrptOrderDetailsTableAdapters.sp_rptOrderSizeBreakdownTableAdapter adtSBD = new DataSet.DataSetrptOrderDetailsTableAdapters.sp_rptOrderSizeBreakdownTableAdapter();
                adtSBD.Fill(this.dataSetrptOrderDetails1.sp_rptOrderSizeBreakdown, OIDs);
            }
        }
    }
}
